<#include "/common/head.ftl">

<html>

<head>

<title>Final Test Result</title>

<style>

* {
	font-size:0.35cm;
}
	
table.nameTable {
	empty-cells:show;
	border-top: 1px solid black;
	border-right: 1px solid black;
}

table.nameTable td { padding: 3px 2px;}
* {
	font-size:0.35cm;
}

table.nameTable tr td  {
	border-left: 1px solid black;
	border-bottom: 1px solid black;
}

</style>

</head>

<body style="padding:0cm">

<div style="width:26cm;text-align:left;margin:0cm;padding:0px">

<table cellspacing="5" cell style="font-weight:bold;">
	<tr>
		<td rowspan="3"><img src="../images/saigontech.gif"/></td>
		<td colspan="2"><h2>FINAL TEST RESULT - ${(offering.name)!}, ${(offering.shift.startTime?time)!} - ${(offering.shift.endTime?time)!}</h2></td>
	</tr>
	<tr>
		<td>Begin Date: ${(offering.startDate?date)!}</td>
		<td>Test Date: ${(offering.finalSpokenDate?date)!} & ${(offering.finalWrittenDate?date)!} </td>	</tr>
	<tr>
		<td>Finish Date: ${(offering.endDate?date)!}</td>
		<td>Teachers: ${(View.printTeacher(offering.instructors))!}</td>
	</tr>
</table>

<table class="nameTable" cellspacing="0" cellpadding=0" style="width:100%">
	<tr style="text-align:center;font-weight:bold;background-color:#D6FAEB">
		<td rowspan="3" style="text-align:center; width:20px">${i18n.getMessage('ordinalNumber')}</td>
		<td rowspan="3" colspan="2">Student's Name</td>
		<td rowspan="3">Receipt</td>
		<td rowspan="3">Telephone</td>
		<td rowspan="3">Date of <br/> Birth</td>
		<td rowspan="3">Gender</td>
		<td colspan="2">Attendance (10%)</td>
		<td colspan="2">Midterm Exam (30%)</td>
		<td colspan="4">Final Exam (60%)</td>
		<td rowspan="3">Final Score <br/> (100%)</td>
		<td rowspan="3">Rank</td>
		<td rowspan="3">Signature</td>
	</tr>
	<tr style="text-align:center;font-weight:bold;background-color:#D6FAEB">
		<td rowspan="2">Raw Score <br/> (100)</td>
		<td rowspan="2">Converted <br/> Score</td>
		<td rowspan="2">Raw Score <br/> (100)</td>
		<td rowspan="2">Converted <br/> Score</td>
		<td colspan="2">Written (40%)</td>
		<td colspan="2">Oral (20%)</td>
	</tr>
	<tr style="text-align:center;font-weight:bold;background-color:#D6FAEB">
		<td>Raw Score <br/> (100)</td>
		<td>Converted <br/> Score</td>
		<td>Raw Score <br/> (100)</td>
		<td>Converted <br/> Score</td>
	</tr>
	
	<#list offeringMembers as member>
		<tr>
			<td style="text-align:center">${(member_index + 1)!'&nbsp;'}</td>
			<td nowrap="nowrap">${(member.receipt.student.lastName)!'&nbsp;'}</td>
			<td>${(member.receipt.student.firstName)!'&nbsp;'}</td>
			<td>${(member.receipt.number)!'&nbsp;'}</td>
			<td>${(View.trimPhoneNumber(member.receipt.student.phoneNumber))!'&nbsp;'}</td>
			<td style="text-align:center">${(member.receipt.student.dateOfBirth?date)!'&nbsp;'}</td>
			<td style="text-align:center">${(i18n.getMessage(member.receipt.student.gender.key))!'&nbsp;'}</td>
			<td style="text-align:center">${(member.attendanceScore)!'&nbsp;'}</td>
			<td style="text-align:center">${(member.convertedAttendanceScore)!'&nbsp;'}</td>
			<td style="text-align:center">${(member.midtermTest.total)!'&nbsp;'}</td>
			<td style="text-align:center">${(member.midtermTest.convertedScore)!'&nbsp;'}</td>
			<td style="text-align:center">${(member.finalTest.writtenScore)!'&nbsp;'}</td>
			<td style="text-align:center">${(member.finalTest.convertedWrittenScore)!'&nbsp;'}</td>
			<td style="text-align:center">${(member.finalTest.oralScore)!'&nbsp;'}</td>
			<td style="text-align:center">${(member.finalTest.convertedOralScore)!'&nbsp;'}</td>
			<td style="text-align:center">${(member.totalScore)!'&nbsp;'}</td>
			<td style="text-align:center">${(member.grade)!'&nbsp;'}</td>
			<td style="text-align:center">&nbsp;</td>
		</tr>
	</#list>
</table>

<br/><br/>

<table style="width:100%;text-align:center">
	<tr>
		<td>Hiệu trưởng ký duyệt <br/><br/><br/><br/><br/><br/>Nguyễn Thị Anh Thư</td>
		<td>Kế toán xác nhận <br/><br/><br/><br/><br/><br/>Nguyễn Thắng Bảo</td>
		<td>Ngày &nbsp;&nbsp; tháng &nbsp;&nbsp; năm ${(now.year + 1900)!} <br/> Người lập bảng <br/><br/><br/><br/><br/> Lê Thị Thanh Nhung</td>
	</tr>
</table>

</div>

</body>
</html>